package com.example.club.test.leakcanary;

import android.content.Context;

public class UserManager {
    private Context context;
    private UserManager(Context context) {
        this.context = context;
    }
    private static UserManager instance;
    public static UserManager getInstance(Context context) {
        if (instance == null) {
            synchronized (UserManager.class) {
                if (instance == null) {
                    instance = new UserManager(context);
                }
            }
        }
        return instance;
    }

}
